const formRules = {
  personName: [{ required: true, message: '请输入姓名' }],
  visitorWorkUint: [{ required: true, message: '请输入单位' }],
  purpose: [{ required: true, message: '请输入事由' }],
  phone: [
    { required: true, message: '请输入联系电话' },
    { regex: /^1\d{10}$|^0[0-9]{2,3}-[0-9]{7,8}$/, message: '请输入正确的手机号码' },
  ],
  beVisitedPersonOrg: [{ required: true, message: '请选择拜访部门' }],
};

export { formRules };
